package cn.t212.cloud.ms.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "server-user-8001",fallback = UserServiceFallback.class)
public interface UserServiceClient {
    @GetMapping("/userHello")
    String hello();
    @PostMapping("/users")
    List<UserDTO> users(@RequestBody UserDTO user);
}
